//
//  MessageListNormalViewController.h
//  carcareIOS
//
//  Created by 王然 on 16/9/2.
//  Copyright © 2016年 chezheng. All rights reserved.
//

#import "BaseTableViewController.h"
#import "MessageListNormalCell.h"
#import "BaseViewModel.h"
@protocol MessageListNormalViewModelDelegate <NSObject>

-(NSInteger)MessageNums;
-(MessageModel *)messageAtIndex:(NSInteger)index;
-(NSDictionary *)carMessageAtIndex:(NSInteger)index;

-(void)updateSuccess:(void(^)(NSInteger num))success fail:(void(^)())fail;
-(void)loadMoreSuccess:(void(^)(NSInteger num))success fail:(void(^)())fail;

-(void)clickOnMessageAtIndex:(NSInteger)index;
-(MessageCenter_Type)messageType;

-(void)viewDidDisappear;

- (UIView *)returnNoDataView;//返回无数据显示的view
- (void)reloadNoDataHidden:(BOOL)hidden;

//文字中检测出的url 设置点击方法
- (void)clickLabelTextUrl:(NSString *)url;

@end

@interface MessageListNormalViewController : BaseTableViewController

@property (nonatomic , strong) BaseViewModel <MessageListNormalViewModelDelegate>* viewModel;

- (instancetype)initWithViewModel:(BaseViewModel<MessageListNormalViewModelDelegate> *)viewModel;

@end
